<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.entity.Idea" %>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css" />
	<link rel="stylesheet" href="static/css/style.css" type="text/css" />
	<link rel="stylesheet" href="static/css/daohang.css" type="text/css" />
	<style type="text/css">
		.icon-while{
			background-image: url("static/img/glyphicons-halflings-white.png");
		}
		#input01{
			border:0px;
		}
		
		body{
			background-image:url("static/img/bg_main.jpg");
		}
	</style>
</head>

<body>
	<div class="container">
		<div class="row">
			<div class="span12">
			<br>
			标题：<h2 style="text-align:center;">${idea.ideaName}</h2>
			<br>
			<br>
			内容:
			<div style="width:800px;hight:auto;margin:auto auto;">
				<p style="text-indent:20px;font-size:16px; ">${idea.message}</p>
			</div>
			<br/>
			<hr  class="span3" style="border-weight:400;border:2px solid;"/>
			<div style="height:20px;"></div>
				<br><div style="margin-left:80px;">
					<form action="idea.jspx?m=sayshow&id=${idea.id}" method="post" >
						<textarea class="span9" name="imsg" style="border-radius:3px 3px 3px 3px;" rows="3" placeholder="请对该项目提出宝贵的建议" ></textarea>
						<br>
						<input type="submit"  value="评论" style="width:60px;border-radius:10px 0px 10px 0px;margin-left:610px;color:#0088cc"/>
					</form></div>
				<br>
				
				<blockquote>
				<h3>评论</h3>
				<br>
					<c:forEach items="${co}" var="com" >
						<c:if test="${com.ideaid eq idea.id }">
						<div style="text-indent:30px"><img width="64px" src="img.jspx?img=${com.user.image}">&nbsp;${com.user.userName }&nbsp;&nbsp;:${com.message}<br>
								<div style="text-indent:510px;">${com.time }</div></div>
								<c:choose>
						<c:when test="${idea.user.id eq up.userid && com.message != null}">
							<a href="idea.jspx?m=delsay&ideaid=${idea.id }&id=${com.id}" title="删除">
							<input type="button" value="删除" style="width:60px;border-radius:10px 0px 10px 0px;margin-left:610px;"/></a>
						</c:when>					
						<c:otherwise>
						</c:otherwise>
					</c:choose>	
					</c:if>
					<br>
					
					</c:forEach>
				</blockquote>	
			<form >
				<fieldset>
				<br><br>
					<div class="form-actions" style="margin-left:410px;">
						<button  class="btn btn-primary" onclick="location.back()">返回</button>
					</div>
				</fieldset>
			</form> 
			</div>
		</div>	
	</div>	
	
	<script type="text/javascript" src="static/js/jquery.js"></script>
	<script type="text/javascript" src="static/js/jqueryui.js"></script>
	<script type="text/javascript" src="static/js/jquery.illuminate.0.7.min.js"></script>
	
	<script type="text/javascript">
		$(document).ready(function(){
				
			$('#button').illuminate({
				'intensity': '0.5',
				'color': '#2c2c2c'
			});
				
		});
			
	</script>
</body>
</html>